<?php
    class Block_Menu extends Zend_View_Helper_Abstract
    {
        public function Menu()
        {
            $url = new Zend_View_Helper_BaseUrl();
            $listItems = '<ul>';
            $menu = new AdminDthink_Model_Category();
            $value = $menu->listMenu();
            foreach($value as $row)
            {
                $listItems .= '<li><a href="' . $url->baseUrl($row['link']) . '">' . $row['cat_name'] . '</a></li>';
            }
            $listItems .= '</ul>';
            return $listItems;
        }
    }
